#include "widget.h"
#include "cryptstring.h"
#include "cameracontrol.h"
#include <QDebug>
#include <QApplication>
#include <QString>
#include <QUrl>
#include <QDateTime>
#include <QDate>
#include <QTime>
void test(){
    CameraControl cc;
    QDate date = QDate::currentDate();
    QTime time1(1,0,0);
    QTime time2(1,0,1);
    QDateTime start_time(date,time1);
    QDateTime end_time(date,time2);

    QString str = cc.getHistoryVideo(start_time,end_time);
    qDebug()<<str;
}
void test1(){
    CameraControl cc;


    QString str =cc.getMoveUrl(MoveCommand::CAMERA_LEFT);
    qDebug()<<str;
}

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    //    QString password = "580231";
    //    QString setting = "$1$TPAK3iG7";
    //    CryptString temp(password+setting);//传入，密码+setting，生成32位MD5码，然后拼接在setting后面
    //    qDebug()<<setting+"$"+temp.generateMD5();

    //test();
    test1();
    w.show();
    return a.exec();
}
